package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhWelfareMapper;
import com.laowang.project.system.domain.MyCyhWelfare;
import com.laowang.project.system.service.MyCyhWelfareService;

/**
 * H5福利待遇Service业务层处理
 *
 * @author laowang
 * @date 2023-10-16
 */
@Service
public class MyCyhWelfareServiceImpl implements MyCyhWelfareService {
    @Autowired
    private MyCyhWelfareMapper myCyhWelfareMapper;

    /**
     * 查询H5福利待遇
     *
     * @param id H5福利待遇ID
     * @return H5福利待遇
     */
    @Override
    public MyCyhWelfare selectMyCyhWelfareById(Integer id) {
        return myCyhWelfareMapper.selectMyCyhWelfareById(id);
    }

    /**
     * 查询H5福利待遇列表
     *
     * @param myCyhWelfare H5福利待遇
     * @return H5福利待遇
     */
    @Override
    public List<MyCyhWelfare> selectMyCyhWelfareList(MyCyhWelfare myCyhWelfare) {
        return myCyhWelfareMapper.selectMyCyhWelfareList(myCyhWelfare);
    }

    /**
     * 新增H5福利待遇
     *
     * @param myCyhWelfare H5福利待遇
     * @return 结果
     */
    @Override
    public int insertMyCyhWelfare(MyCyhWelfare myCyhWelfare) {
        return myCyhWelfareMapper.insertMyCyhWelfare(myCyhWelfare);
    }

    /**
     * 修改H5福利待遇
     *
     * @param myCyhWelfare H5福利待遇
     * @return 结果
     */
    @Override
    public int updateMyCyhWelfare(MyCyhWelfare myCyhWelfare) {
        return myCyhWelfareMapper.updateMyCyhWelfare(myCyhWelfare);
    }

    /**
     * 批量删除H5福利待遇
     *
     * @param ids 需要删除的H5福利待遇ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhWelfareByIds(Integer[] ids) {
        return myCyhWelfareMapper.deleteMyCyhWelfareByIds(ids);
    }

    /**
     * 删除H5福利待遇信息
     *
     * @param id H5福利待遇ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhWelfareById(Integer id) {
        return myCyhWelfareMapper.deleteMyCyhWelfareById(id);
    }
}
